package com.taobao.action.menu;

import java.awt.Toolkit;
import java.awt.datatransfer.StringSelection;

import com.taobao.action.CommonAction;
import com.taobao.ui.menu.CommonMenu;

public class CopyAction extends CommonAction {

	@Override
	public void doAction(Object uiObject) {
		CommonMenu commonMenu = (CommonMenu) uiObject;
		Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(commonMenu.getCurrentCellWord()), null);
	}
}
